<?php

namespace App\Models\Goods;

use App\Models\Members;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Order extends Model
{

   use SoftDeletes;
    protected $datas = ['deleted_at'];
    protected $table = 'order';

    protected $fillable = [
        'order_sn','goods_id','order_price','payment','consignee_name','consignee_mobile','consignee_address','order_status','goods_num','goods_price','user_id','goods_name','shop_code','shipping_send_time'
    ];


    public function member()
    {
        return $this->hasOne(Members::class,'id','user_id');
    }
}
